package com.cow.sram.data.dto;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.cow.sram.data.entity.Resourceinfo;

/**Session模型*/
public class UserSessionModel implements Serializable{
	private static final long serialVersionUID = 1L;
	private String session_key;//本地会话密钥
	private User userInfo;//用户信息
	private List<Resourceinfo> menuList;
	private Map<String,Object> customData = new HashMap<String,Object>();//自定义数据

	public String getSession_key() {
		return session_key;
	}
	public void setSession_key(String session_key) {
		this.session_key = session_key;
	}
	public void setCustomData(Map<String, Object> customData) {
		this.customData = customData;
	}
	public User getUserInfo() {
		return userInfo;
	}
	public void setUserInfo(User userInfo) {
		this.userInfo = userInfo;
	}
	public Map<String, Object> getCustomData() {
		return customData;
	}
	public List<Resourceinfo> getMenuList() {
		return userInfo.getResourceMap().get("t0");
	}
	public void setMenuList(List<Resourceinfo> menuList) {
		this.menuList = menuList;
	}
	
}
